package example.movieRental.afterRF;

/**
 * Created by thinkpad on 2015/2/8.
 */
//Rental.java
public class Rental {
    Movie movie;
    private int daysRented;

    public Rental(Movie movie, int daysRented) {
        this.movie = movie;
        this.daysRented = daysRented; //租期
    }

    public Movie getMovie() {
        return movie;
    }

    public int getDaysRented() {
        return daysRented;
    }

    int getFrequentRenterPoints() {
        return movie.getPrice().getFrequentRenterPoints(daysRented);
    }

    double getCharge() {
        return movie.getPrice().getCharge(daysRented);
    }
}
